home *** CD-ROM | disk | FTP | other *** search
- .TUTORIAL - Create MenuBar & Items
-
- This definition generates a complete Turbo Vision application. There
- is one SubMenu with two items, no hints.
-
- Press Ctrl-F9 to run the program.
-
-
- OBSERVATIONS
- ------------
- 1. Press F10 for MENU. A hint appears, to say no hint is available.
- (In the next definition, we'll add hints.)
-
- 2. Select any SubMenu item. A MsgBox appears; a dummy routine was
- generated for each item.
-
- 3. When code is generated, certain assumptions are made regarding
- names: The name for a Menu or Status item is "extrapolated" to
- fill out the Turbo Vision syntax:
-
- file --> hcFile
- open --> kbNOKEY, cmOpen, hcOpen
- save f2 --> kbF2, cmSave, hcSave
-
- You can override this by supplying a name with proper prefix:
-
- file hcFileMenu --> hcFileMenu
-
- NOTES
- -----
- 1. If you have not changed the defaults, this program will use
- resources and overlays. Initialization of both is automatic; see
- the generated *_I.PAS unit for details.
-
- 2. When creating, revising or experimenting with interfaces, you can
- change SETUP|Code options for faster generation and compilation:
-
- [X] Set the Menu, Status, Hint and Dialog options to CODE instead
- of REZ (resources).
- [X] Turn generated comments and dummy routines OFF
- [X] Set "Help text" to "ignore" or turn "Compile help" to "Smart".
- [X] Set all default "StatusLine contexts" to OFF
- [X] Set ExecSwap, Unitize and Overlays OFF
-
- Another way of doing the same, with the [ SWITCH ] keyword, is:
-
- . [ SWITCH ]
- . /1/rem-/r0/ht3/h+/s-/x-/u-/o-
-
- 3. For simpler definitions, you can speed things up by turning off
- the Swap-To-Disk in the SETUP|IDE dialog.
-
- @PA - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
- [ SUBMENU ] File
- Open
- Save
-